<template>
  <el-form class="add-event-general" v-if="wbData">
    <el-divider content-position="center">通用接口数据</el-divider>
    <dropdown-normal v-model="wbData.ele_key" :valLists="GENERAL_TYPES" label="通用接口类型" :bIsBtn="false" @change="onUpdateWbComponent" ></dropdown-normal>
    <input-normal label="关联触发组件id" v-model="wbData.relateCompId" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="关联获取组件id" v-model="wbData.getCompId" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="扩展属性1" v-model="wbData.ext_1" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="扩展属性2" v-model="wbData.ext_2" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="扩展属性3" v-model="wbData.ext_3" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="扩展属性4" v-model="wbData.ext_4" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="扩展属性5" v-model="wbData.ext_5" @change="onUpdateWbComponent"></input-normal>
    <input-normal label="扩展字段key" v-model="wbData.ext_key" @change="onUpdateWbComponent"></input-normal>
  </el-form>
</template>
<script>
import InputNormal from '@/views/components/edit/InputNormal.vue'
import DropdownNormal from '@/views/components/edit/DropdownNormal.vue'
import SwitchNormal from '@/views/components/edit/SwitchNormal.vue'

import { GENERAL_TYPES, GENERAL_STATUS_TYPES, GENERAL_TYPES_MAP } from '@/common/const-general'
import { addUtils } from "@/views/js/add-utils"

  export default {
    mixins: [addUtils],
    setup () {
      return {
        // DIGIT_MAP: DIGIT_MAP,
        GENERAL_TYPES: GENERAL_TYPES,
        GENERAL_STATUS_TYPES: GENERAL_STATUS_TYPES,
        GENERAL_TYPES_MAP: GENERAL_TYPES_MAP
      }
    },
    components: {
      InputNormal,
      DropdownNormal,
      SwitchNormal,
    },
  }
</script>
